import java.awt.Color;


public class CompleteVerticalMirror
{
   public static void main(String[] args)
   {
      Picture original = new Picture("/Users/locphan/Documents/workspace/Lab10/butterfly1.jpg");
      Picture modifier = new Picture("/Users/locphan/Documents/workspace/Lab10/butterfly1.jpg");
      
      int width = modifier.getWidth();
      int height = modifier.getHeight();
      
      int midpoint = width/2;
      
      Pixel one = null;
      Pixel two = null;
      
      Color temp = null;
      
      for(int y=0;y<height;y++)
      {
         for(int x=0;x<midpoint;x++)
         {
            one = modifier.getPixel(x, y);
            temp = modifier.getPixel(x, y).getColor();
            
            two = modifier.getPixel(width-1-x, y);
            
            
            one.setColor(two.getColor());
            two.setColor(temp);
         }
      }
      
      original.show();
      modifier.show();

    }
}
